package cn.hx.malluser.feignApi;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 商品模块客户端
 *
 * @author mall-user
 */
@FeignClient("mall-goods")
public interface GoodsClient {

    /**
     * 新品推荐
     *
     * @return  新品列表
     */
    @GetMapping("/newProducts")
    List<Object> latest();

}
